package com.fxwater.biz.service.impl;

import com.fxwater.biz.domain.ImportantCustomerInfo;
import com.fxwater.biz.mapper.ImportantCustomerInfoMapper;
import com.fxwater.biz.service.ImportantCustomerService;
import com.fxwater.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImportantCustomerServiceImpl implements ImportantCustomerService {
    @Autowired
    private ImportantCustomerInfoMapper importantCustomerInfoMapper;

    @Override
    public int removeImportantCustomer(String ids) {
        return importantCustomerInfoMapper.removeImportantCustomer(Convert.toStrArray(ids));
    }

    @Override
    public int addImportantCustomer(ImportantCustomerInfo importantCustomerInfo) {
        return importantCustomerInfoMapper.addImportantCustomer(importantCustomerInfo);
    }

    @Override
    public int editSaveImportantCustomer(ImportantCustomerInfo importantCustomerInfo) {
        return importantCustomerInfoMapper.editSaveImportantCustomer(importantCustomerInfo);
    }

    @Override
    public List<ImportantCustomerInfo> selectImportantCustomerInfoList(ImportantCustomerInfo importantCustomerInfo) {
        return importantCustomerInfoMapper.selectImportantCustomerInfoList(importantCustomerInfo);
    }
}
